package com.hksj.wmp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hksj.common.core.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 微信openid
 * @author chenxingqing
 */
@Data
@ApiModel
@TableName("sys_wx_open_id")
public class WxOpenId extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "微信openid")
    @TableField("open_id")
    private String openId;

    @ApiModelProperty(value = "用户在微信开放平台的唯一标识符。本字段在满足一定条件的情况下才返回")
    @TableField("union_id")
    private String unionId;

    @ApiModelProperty(value = "会话密钥")
    @TableField("session_key")
    private String sessionKey;

    @ApiModelProperty(value = "用户类型")
    @TableField("type")
    private Integer type;
}
